package com.ruoyi.common.core.domain.entity;


import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 产品原布原料和品类类似部门管理的对象 zc_stock
 */
public class ZcStock extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 产品原布原料和品类id */
    private Long stockId;

    /** 上级id */
    @Excel(name = "上级id")
    private Long parentId;

    /** 祖级列表 */
    @Excel(name = "祖级列表")
    private String ancestors;

    /** 产品品类名称 */
    @Excel(name = "产品品类名称")
    private String stockName;

    /** 产品状态 */
    @Excel(name = "产品状态")
    private String status;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Long del;

    /** 父部门名称 */
    private String parentName;

    /** 子部门 */
    private List<ZcStock> children = new ArrayList<>();

    public void setStockId(Long stockId)
    {
        this.stockId = stockId;
    }

    public Long getStockId()
    {
        return stockId;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    public String getAncestors()
    {
        return ancestors;
    }
    public void setStockName(String stockName)
    {
        this.stockName = stockName;
    }

    public String getStockName()
    {
        return stockName;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDel(Long del)
    {
        this.del = del;
    }

    public Long getDel()
    {
        return del;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public List<ZcStock> getChildren() {
        return children;
    }

    public void setChildren(List<ZcStock> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("stockId", getStockId())
                .append("parentId", getParentId())
                .append("ancestors", getAncestors())
                .append("stockName", getStockName())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("del", getDel())
                .toString();
    }
}
